package Model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ElderInfoChanged {
    private Integer id;
    private String name;
    private Integer ybid;
    private String changed_title;
    private String history_content;
    private String new_content;
    private String settlement_code;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date start_change_date;
    @DateTimeFormat(pattern = "yyyy-MM-dd\'T\'HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd\'T\'hh:mm:ss", timezone = "GMT+8")
    private Date history_change_time;


    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getYbid() {
        return ybid;
    }

    public void setYbid(Integer ybid) {
        this.ybid = ybid;
    }

    public String getChanged_title() { return changed_title; }

    public void setChanged_title(String changed_title) { this.changed_title = changed_title; }

    public String getHistory_content() { return history_content; }

    public void setHistory_content(String history_content) { this.history_content = history_content; }

    public String getNew_content() { return new_content; }

    public void setNew_content(String new_content) { this.new_content = new_content; }

    public Date getHistory_change_time() { return history_change_time; }

    public void setHistory_change_time(Date history_change_time) { this.history_change_time = history_change_time; }

    public String getSettlement_code() {
        return settlement_code;
    }

    public void setSettlement_code(String settlement_code) {
        this.settlement_code = settlement_code;
    }

    public Date getStart_change_date() {
        return start_change_date;
    }

    public void setStart_change_date(Date start_change_date) {
        this.start_change_date = start_change_date;
    }

    @Override
    public String toString() {
        return "Elder{" +
                "id="+id+'\''+
                ", name='" + name + '\'' +
                ", ybid=" + ybid +
                ", history_change_time='"+history_change_time+'\''+
                ", changed_title='" + changed_title + '\'' +
                ", history_content=" + history_content +
                ", new_content='"+new_content+'\''+
                ", settlement_code='"+settlement_code+'\''+
                '}';
    }
}
